/******************************************************************************
COPYRIGHT 2019   : ATECH
Project          : LIN
Source File Name : ACP_ACP_lin1_hand.h
Group            : SoftWare Team
Author           : Yuchch
Date First Issued: 10/09/2019
******************************************************************************/
#ifndef ACP_ACP_lin1_hand_h
#define ACP_ACP_lin1_hand_h

/* #include */
#include "Slave_lin1_syst.h"
#include "Slave_lin1_htype.h"

/* arrays */
extern l_const l_u8 LIN1_ROMDatabase[];

/* #define */
#define LIN1_ID_TABLE_SIZE     2

#define LIN1_INIT_VAL_START_ADDR  0
#define LIN1_ID_START_ADDR        16
#define LIN1_ID_DIR_START_ADDR    18
#define LIN1_ID_LEN_START_ADDR    20

#define LIN1_DATAREQUEST_MAX_LEN  8
#define LIN1_DATASEND_MAX_LEN     8

#define LIN1_ID0_Frame_LENTH  8
#define LIN1_ID1_Frame_LENTH  8
#define LIN1_ID2_Frame_LENTH  1
#define LIN1_ID3_Frame_LENTH  1
#define LIN1_ID4_Frame_LENTH  1
#define LIN1_ID5_Frame_LENTH  1
#define LIN1_ID6_Frame_LENTH  1
#define LIN1_ID7_Frame_LENTH  1
#define LIN1_ID8_Frame_LENTH  1
#define LIN1_ID9_Frame_LENTH  1
#define LIN1_ID10_Frame_LENTH  1
#define LIN1_ID11_Frame_LENTH  1
#define LIN1_ID12_Frame_LENTH  1
#define LIN1_ID13_Frame_LENTH  1
#define LIN1_ID14_Frame_LENTH  1
#define LIN1_ID15_Frame_LENTH  1
#define LIN1_ID16_Frame_LENTH  1
#define LIN1_ID17_Frame_LENTH  1
#define LIN1_ID18_Frame_LENTH  1
#define LIN1_ID19_Frame_LENTH  1

/* #define signals */
#define ACP_ACP_LIN1_TX_AC_Key_AC_l_signal_bool_Handle                ((l_signal_bool_handle) 0x10000)
#define ACP_ACP_LIN1_TX_AC_Key_HEAT_l_signal_bool_Handle              ((l_signal_bool_handle) 0x10100)
#define ACP_ACP_LIN1_TX_AC_Key_Blower_Minus_l_signal_bool_Handle      ((l_signal_bool_handle) 0x10200)
#define ACP_ACP_LIN1_TX_AC_Key_Blower_Plus_l_signal_bool_Handle       ((l_signal_bool_handle) 0x10300)
#define ACP_ACP_LIN1_TX_AC_Key_Defrost_l_signal_bool_Handle           ((l_signal_bool_handle) 0x10400)
#define ACP_ACP_LIN1_TX_AC_Key_RecircAir_l_signal_bool_Handle         ((l_signal_bool_handle) 0x10500)
#define ACP_ACP_LIN1_TX_AC_Key_Left_Temp_Minus_l_signal_bool_Handle   ((l_signal_bool_handle) 0x10700)
#define ACP_ACP_LIN1_TX_AC_Key_Left_Temp_Plus_l_signal_bool_Handle    ((l_signal_bool_handle) 0x10800)
#define ACP_ACP_LIN1_TX_AC_Key_Mode_Minus_l_signal_bool_Handle        ((l_signal_bool_handle) 0x10900)
#define ACP_ACP_LIN1_TX_AC_Key_OFF_l_signal_bool_Handle               ((l_signal_bool_handle) 0x10A00)
#define ACP_ACP_LIN1_TX_AC_Key_RearDef_l_signal_bool_Handle           ((l_signal_bool_handle) 0x10D00)
#define ACP_ACP_LIN1_TX_AC_RESP_ERR_l_signal_bool_Handle              ((l_signal_bool_handle) 0x11400)
#define ACP_ACP_LIN1_TX_ACP_OUT_TEMP_SENSOR_ERR_l_signal_bool_Handle  ((l_signal_bool_handle) 0x12000)

#define ACP_ACP_LIN1_TX_AC_Reserve11_12_l_signal_u8_Handle          ((l_signal_u8_handle) 0x20B00)
#define ACP_ACP_LIN1_TX_AC_Reserve14_19_l_signal_u8_Handle          ((l_signal_u8_handle) 0x60E00)
#define ACP_ACP_LIN1_TX_AC_Reserve21_23_l_signal_u8_Handle          ((l_signal_u8_handle) 0x31500)
#define ACP_ACP_LIN1_TX_ACP_OUT_TEMP_l_signal_u8_Handle             ((l_signal_u8_handle) 0x81800)
#define ACP_ACP_LIN1_TX_AC_Reserve33_39_l_signal_u8_Handle          ((l_signal_u8_handle) 0x72100)
#define ACP_ACP_LIN1_TX_AC_Reserve40_47_l_signal_u8_Handle          ((l_signal_u8_handle) 0x82800)
#define ACP_ACP_LIN1_TX_AC_Reserve48_55_l_signal_u8_Handle          ((l_signal_u8_handle) 0x83000)
#define ACP_ACP_LIN1_TX_AC_Reserve56_63_l_signal_u8_Handle          ((l_signal_u8_handle) 0x83800)
#define ACP_ACP_LIN1_RX_AC_Telltale_Defrost_l_signal_u8_Handle      ((l_signal_u8_handle) 0x20201)
#define ACP_ACP_LIN1_RX_AC_Telltale_AC_l_signal_u8_Handle           ((l_signal_u8_handle) 0x20401)
#define ACP_ACP_LIN1_RX_AC_Telltale_RearDefrost_l_signal_u8_Handle  ((l_signal_u8_handle) 0x20601)
#define ACP_ACP_LIN1_RX_AC_Telltale_RecircAir_l_signal_u8_Handle    ((l_signal_u8_handle) 0x20801)
#define ACP_ACP_LIN1_RX_AC_KEY_HEAT_l_signal_u8_Handle              ((l_signal_u8_handle) 0x22A01)


/* #define signal flags */
#define ACP_ACP_LIN1_TX_AC_Key_AC_l_flag_Handle                ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Key_HEAT_l_flag_Handle              ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Key_Blower_Minus_l_flag_Handle      ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Key_Blower_Plus_l_flag_Handle       ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Key_Defrost_l_flag_Handle           ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Key_RecircAir_l_flag_Handle         ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Key_Left_Temp_Minus_l_flag_Handle   ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Key_Left_Temp_Plus_l_flag_Handle    ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Key_Mode_Minus_l_flag_Handle        ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Key_OFF_l_flag_Handle               ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Reserve11_12_l_flag_Handle          ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Key_RearDef_l_flag_Handle           ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Reserve14_19_l_flag_Handle          ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_RESP_ERR_l_flag_Handle              ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Reserve21_23_l_flag_Handle          ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_ACP_OUT_TEMP_l_flag_Handle             ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_ACP_OUT_TEMP_SENSOR_ERR_l_flag_Handle  ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Reserve33_39_l_flag_Handle          ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Reserve40_47_l_flag_Handle          ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Reserve48_55_l_flag_Handle          ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_TX_AC_Reserve56_63_l_flag_Handle          ((l_flag_handle) 0x0)
#define ACP_ACP_LIN1_RX_AC_Telltale_Defrost_l_flag_Handle      ((l_flag_handle) 0x1)
#define ACP_ACP_LIN1_RX_AC_Telltale_AC_l_flag_Handle           ((l_flag_handle) 0x1)
#define ACP_ACP_LIN1_RX_AC_Telltale_RearDefrost_l_flag_Handle  ((l_flag_handle) 0x1)
#define ACP_ACP_LIN1_RX_AC_Telltale_RecircAir_l_flag_Handle    ((l_flag_handle) 0x1)
#define ACP_ACP_LIN1_RX_AC_KEY_HEAT_l_flag_Handle              ((l_flag_handle) 0x1)

#endif
